<tagLib name="html" />

<load href="__PUBLIC__/Js/Base.js" />
<load href="__PUBLIC__/Js/prototype.js" />
<load href="__PUBLIC__/Js/Ajax/ThinkAjax.js" />
<include file="Public:header" />
<BODY id="indexHomeBody">
<DIV id="wrapper">
<!-- wrapper S-->
<DIV style="display: none;" id="pop_window"></DIV>
<DIV class="lightinthebox">
<!-- content S-->
<!--bof-header logo and navigation display-->


<include file="Public:navigate" />


<DIV id="bodyblock">
<DIV class="minframe fl">
<!--// bof: categoriescss //-->
<DIV id="left_menu">
<include file="Public:left_categories" />

</DIV>
<!--// eof: categoriescss //-->

<include file="Public:popular_searches" />
<!--// bof: orderhistory //-->
<include file="Public:recent_order" />
<!--// eof: orderhistory //-->

</DIV>
<DIV class="maxframe">

<!-- Header start-->
<include file="Public:header_navigate" />

<!--bof-navigation display-->
<include file="Public:search_bar" />
<!-- Header end-->
<!-- bof: layer_switch -->
<DIV id="layer_switch"
     class="index_layer allborder right_big_con margin_t relative">

<DIV id="boxswitch">
    <DIV id="border_left" class="off" title="NewArrivals">
        <a href="http://www.go-wholesale.com/products_new.html?productsort=5"><SPAN>Shopping Cart</SPAN></a>
    </DIV>
</DIV>
<DIV id="BestDeal" class="hide">
    <ul></UL>
</DIV>
<DIV id="FreeShipping" class="hide">
    <ul></UL>
</DIV>
<DIV class="show">
<form method="post" id="orderForm" action="__APP__/settlement/order">
    <table width="100%">
    	<th>
    		<td>Product Name</td>
    		<td>Size</td>
    		<td>Quantity</td>
    		<td>Price</td>
    		<td>&nbsp;</td>
    	</th>
    	<volist name="shopping_cart" id="prd">
	        <tr>
	        	<td>
	                <a class="ih" href="__APP__/Product/detail/id/{$prd.pid}">
	                <IMG title="{$prd.product_name}" alt="{$prd.product_name}" src="{$IMG_URL}{$prd.pic}" width="88" height="88"></a>
	            </td>
	            <td>
	                <a href="__APP__/Product/detail/id/{$prd.id}">{$prd.product_name}</a>
					<input type="hidden" name="pid[]" value = "{$prd.id}">
	            </td>
	            <td>
	                {$prd.size}<input type="hidden" name="size[]" value = "{$prd.size}">
	            </td>
	            <td>
	                <input type="text" size="3" name="qty[]" value="1" />
	            </td>
	            <td>
	                {$prd.current_price}
	            </td>
	            <td>
	                <a href="javascript:deleteFromShoppingCar('{$prd.id}','{$prd.category_id}','{$prd.size}');">Delete</a>
	            </td>
	        </tr>
	        <eq name="mod" value="3"><br class="clear"></eq>
        </volist>
	        <tr>
	        	<td align="center" colspan="5">
        			<notempty name="shopping_cart">
	        			<input type="button" onclick="order();" value="Order" >
       				</notempty>
	        		<input type="button" onclick="clearShoppingCart();" value="Clear" >
       			</td>
	        </tr>
    </table>
    </form>
<SCRIPT>
	function order(){
		if(confirm("Conform order?")){
			document.getElementById('orderForm').submit();
		}
	}
	function clearShoppingCart(){
		window.location = '__APP__/ShoppingCart/clear';
	}
	function deleteFromShoppingCar(product_id, category_id,size){
		ThinkAjax.send('__APP__/ShoppingCart/delete','ajax=1&product_id='+product_id+"&category_id=" + category_id + "&size=" + size,complete,'result');
	}
	function complete(data,status){
		if (status==1){
			window.location = '__APP__/ShoppingCart';
		}
	}
</SCRIPT>
</DIV>
</DIV>
</DIV>
<!-- eof: layer_switch -->
<include file="Public:bottom" />
<!--// eof: recently viewed //-->
<!--bof- site copyright display -->
<include file="Public:copyright" />
</BODY>
</HTML>
